<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>网站导航</title>
  <link rel="stylesheet" href="/bootstrap/dist/css/bootstrap-grid.min.css">
  <style>
    body {
      background: rgba(0, 0, 0, .8);
      margin: 0;
      padding: 0;
    }

    .item {
      line-height: 40px;
      border: 2px solid #fff;
      margin: 15px 0;
      transition: all .5s;
    }

    .item:hover {
      border-color: #0099FF;
    }

    .item:hover a {
      background: #0099FF;
    }

    .item a {
      display: block;
      text-align: center;
      color: #fff;
      text-decoration: none;
    }
  </style>
</head>

<body>
  <!-- 12312 -->
  <div class="container">
    <div class="row" id="container"></div>
  </div>
</body>
<script>
  const host = '115.159.102.251';
  const guides = [{
      title: '国艺官网',
      port: '3000'
    },
    {
      title: 'realworld',
      port: '8000'
    },
    {
      title: 'react-todomvc',
      port: '8001'
    },
  ]
  let html = '';
  guides.forEach(item => {
    html += ' <div class="col-md-3"><div class="item"><a target="__blank" href="http://' + host + ':' + item.port +
      '">' + item.title + '</a></div></div>'
  })
  document.querySelector('#container').innerHTML = html;
</script>

</html>